import React, { Component } from 'react'
import Footer from '../components/Footer'
import RouterView from '../router'
import {Link} from 'react-router-dom'

export default class Cate extends Component {
    componentWillMount(){
        console.log('cate page routes',this.props.routes)
    }
    render() {
        return (
            <div>
                <h2>产品分类</h2>
                <div className="nav">
                    <Link to="/cate/cate1">产品</Link> | <Link to="/cate/cate2">评价</Link> | <Link to="/cate/cate3">商户</Link>
                </div>
                <RouterView routes={this.props.routes}></RouterView>

                <Footer {...this.props}></Footer>
            </div>
        )
    }
}
